package aop01;

/**
 * @author 石小俊
 */
public class SomeServiceProxy implements SomeService{

    private SomeService someService = new SomeServiceImpl();

    @Override
    public void doSome() {
        System.out.println("开始事务");
        someService.doSome();
        System.out.println("提交事务");
    }

    @Override
    public void doOther() {
        System.out.println("开始事务");
        someService.doOther();
        System.out.println("提交事务");
    }
}
